package com.label.Dao;

import com.label.Model.Do.ee_stu.ProfilesDis;
import com.label.Model.Query.ProfileDisQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
public interface ProfilesDisMapper {


    int updateByPrimaryKey(ProfilesDis record);

    //返回所有老师账号下所有角色的画像信息
    List<Map<String,Object>> selectAllProfileSDis(ProfileDisQuery profileDisQuery);

    List<Map<String, Object>> getAllRole(@Param(value = "accountId") String accountId);

    List<Map<String, String>> getAllProfiles(String accountId, String roleId);

    List<Map<String, String>> getUnusedProfiles(String accountId, String roleId,String profileId);

    //todo:删除画报会把对应的角色删除
    Boolean delProfile(String accountId, String roleId, String profileId);

    Boolean insertProfile(String accountId, String roleId, String profileId);
}